package com.bw.coupon.service.impl;
/**
 * @Author：尚志豪
 * @Package：com.bw.coupon.service.impl
 * @Project：doudi-group-practical_training-02
 * @name：PlatformServiceImpl
 * @Date：2025/1/16 17:06
 */

import com.bw.coupon.domain.res.TDiscountCouponRes;
import com.bw.coupon.mapper.PlatformMapper;
import com.bw.coupon.service.IPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: doudi-group-practical_training-02
 * @description: 平台逻辑层
 * @author: CuiFu Bo
 * @create: 2025-01-16 17:06
 **/
@Service
public class PlatformServiceImpl implements IPlatformService {
    @Autowired
    private PlatformMapper platformMapper;
    /**
     * B端 平台 查询未审核的优惠卷分页列表
     */
    @Override
    public List<TDiscountCouponRes> queryTheListOfUnauditedDiscountPages(Long status) {
        return platformMapper.queryTheListOfUnauditedDiscountPages(status);
    }
    /**
     * B端 平台 通过优惠劵id给优惠劵审核
     */
    @Override
    public void passCouponIdToCouponForReview(Long id,Long status) {
        platformMapper.passCouponIdToCouponForReview(id,status);
    }
}
